package cn.xbtop.service.impl;

import cn.xbtop.domain.UserAddress;
import cn.xbtop.service.OrderService;
import cn.xbtop.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/3/27 11:34
 */
@Service
public class OrderServiceImpl implements OrderService {
    //@Autowired
    //@Reference(timeout = 3000,check = false,retries = 5)
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public List<UserAddress> initOrder(String userId) {
        return userService.queryAllAddress(userId);
    }
}
